#include <conio.h>
#include <stdio.h>
#include <math.h>

// kiem tra 1 so co la nguyen to 
int ktNguyenTo(int n){
	int kt = 1;
	if( n == 1) {
		kt = 0;
		return kt;
	}
	if(n == 2 ){
		kt = 1;
		return kt;
	}
	for(int i = 2; i <= n/2 ; i++){
		if( n % i == 0) {
			kt = 0;
			break;
		} 
	}
	return kt;
}
//Liet ke cac so nguyen to < 100
void lkNguyento(int n){
	for(int i = 1; i <= n ; i++){
		if(ktNguyenTo(i)) printf("%d\t", i);
	}
}

int main(){
	lkNguyento(100);
	
}
